# this is the top-level dummy package that holds everything together
# DO NOT add any functional code here

# package structure:
# 
# ptcd (top-level package)
# |- utils      general utility functions
# |- scritps    UI scripts
# +- *.py       daemon code
# 

####  Generic Packaging Utils  ####
import pkg_resources

def pkg_info():
    return pkg_resources.require('payment-tracking-complex')[0]

class Singleton(type):
    _instances = {}
    def __call__(cls, *args, **kwargs):
        if cls not in cls._instances:
            cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
        return cls._instances[cls]
